package copyengine.ui.component.list.old.animation
{
	import flash.display.DisplayObjectContainer;
	import flash.display.MovieClip;

	public class CEListCellRenderOverBgAnimation implements ICEListCellRenderAnimation
	{
		private var cellRenderContainer:MovieClip;

		public function CEListCellRenderOverBgAnimation()
		{

		}

		public function set target(_cellRenderContainer:DisplayObjectContainer):void
		{
			cellRenderContainer = _cellRenderContainer as MovieClip;

			if (cellRenderContainer["overBg"])
			{
				cellRenderContainer["overBg"].visible = false;
			}
		}

		public function dispose():void
		{
			cellRenderContainer = null;
		}

		public function onRollOver():void
		{
			if (cellRenderContainer["overBg"])
			{
				cellRenderContainer["overBg"].visible = true;
			}
		}

		public function onRollOut():void
		{
			if (cellRenderContainer["overBg"])
			{
				cellRenderContainer["overBg"].visible = false;
			}
		}

		public function onSelect(_isSelected:Boolean):void
		{
		}
	}
}